package com.qfedu.wfx.manager.user.mapper;

import com.qfedu.wfx.manager.user.configuration.LoginUserBean;
import com.qfedu.wfx.manager.user.po.SysModule;
import com.qfedu.wfx.manager.vo.ParentNodeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    LoginUserBean checkUserName(@Param("account") String account);
    List<SysModule> queryAllModule();
    List<SysModule> queryModuleByRole(@Param("roleCode") String roleCode);
    List<String> queryModuleCodeByRole(@Param("roleCode") String roleCode);
    void delModule(String[] code);
    void addModule (@Param("moduleId") String moduleId,@Param("roleId")String roleId);
    List<ParentNodeVO> queryParentNode(@Param("roleCode") String roleCode);
    List<String> queryModuleByName(@Param("username") String username);
}
